extends ../layout/default.jade
block append vars
  if (data.category && data.currentCategory != 'index')
    - title.unshift(data.category.name);
block prepend content
  each post in data.posts
    include ../pagelets/post.jade
  div.pagination
    ul
      li.first
        a
          i.icon-first-2
      li.prev
        a
          i.icon-previous
      li
        a 1
      li
        a 2
      li.active
        a 3
      li.spaces
        a ...
      li.disabled
        a 4
      li
        a 500
      li.next
        a
          i.icon-next
      li.last
        a
          i.icon-last-2
  //div.grid.padding10.ntp.nbp.clearfix.bg-grayLighter.post
  //  pre(style="word-wrap: break-word;") !{JSON.stringify(data, 0, 2)}
block prepend foot
  script(src='http://cdn.staticfile.org/jquery/1.10.2/jquery.min.js')
  script(src="/js/blog.js")